//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using EntLibContrib.Resource.Configuration;

namespace EntLibContrib.Resource.Configuration.Design
{
  /// <summary>
  /// Node map registrar for Data Resource providers
	/// this registers tree nodes with the configuration console
	/// </summary>
  class DataResourceProviderNodeMapRegistrar: NodeMapRegistrar
  {
		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="T:DataResourceProviderNodeMapRegistrar"/> class.
		/// </summary>
		/// <param name="serviceProvider">The service provider.</param>
    public DataResourceProviderNodeMapRegistrar(IServiceProvider serviceProvider) : base(serviceProvider)
    {
		}
		#endregion

		#region Public Methods
		/// <summary>
		/// Registers this instance.
		/// </summary>
    public override void Register()
    {
			AddSingleNodeMap(InternalResources.DataResourceProviderUICommandText, typeof(DataResourceProviderNode), typeof(DataResourceProviderData));
    }
		#endregion
	}
}
